Skip to content

Fix basePath - #1272

Closed
akhilputhiry wants to merge 1 commit into
coder:masterfrom
akhilputhiry:fix-basepath
Closed

akhilputhiry wants to merge 1 commit into
coder:masterfrom
akhilputhiry:fix-basepath

Conversation

@akhilputhiry

@akhilputhiry akhilputhiry commented Jan 13, 2020 •

Copy link
Copy Markdown

This PR fixes #1237

@akhilputhiry akhilputhiry changed the title Addresses https://github.com/cdr/code-server/issues/1237 Fix basePath Jan 13, 2020
@sr229

sr229 commented Jan 13, 2020

Copy link
Copy Markdown
Contributor

Edited the message just to reference GH-1237 and allow a merge to auto-close this.

@sr229 sr229 added the enhancement Some improvement that isn't a feature label Jan 13, 2020
@code-asher

code-asher commented Jan 13, 2020 via email

Copy link
Copy Markdown
Member

@akhilputhiry

Copy link
Copy Markdown
Author

My understanding about --base-path is different.
I can pass any random path to the flag --base-path and code-server should run in that path.
eg: --base-path=/akhil/server1 then code server should be up and running in the path /akhil/server1. This is a common functionality available in almost all web apps like Prometheus, grafana, jupyter, kibana etc. etc.

Implementation could be different, but this is the ask of all those issues raised saying base path is not working.

Any thoughts??

@code-asher

code-asher commented Jan 15, 2020 via email

Copy link
Copy Markdown
Member

@akhilputhiry

Copy link
Copy Markdown
Author

@code-asher Let me try to break it down for you.

The requirement is, we need to run multiple code-servers behind the proxy for multiple users.

Now this can be achieved this by rewriting the URL inside the proxy server. But not all proxy servers support this feature (eg: configurable-http-proxy).

if we can run the app in the context or path provided by the --base-path all proxies will be able to handle the code-server.

@code-asher

code-asher commented Jan 17, 2020 via email

Copy link
Copy Markdown
Member

@code-asher

code-asher commented Jan 17, 2020 via email

Copy link
Copy Markdown
Member

@akhilputhiry

Copy link
Copy Markdown
Author

@code-asher We dont need to do anything extra for proxy's with rewrite capability. It will work out of the box.

@code-asher

code-asher commented Jan 21, 2020 via email

Copy link
Copy Markdown
Member

@nhooyr

nhooyr commented Jan 27, 2020

Copy link
Copy Markdown
Contributor

See #1237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Some improvement that isn't a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

base-path option is not use.

4 participants